﻿namespace Dyao.Book.Contract
{
    /// <summary>
    /// 任务中心记录
    /// </summary>
    public class TaskCenterRecordAddDto
    {
        /// <summary>
        /// 主键
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// 任务配置Id
        /// </summary>
        public string TaskCenterSettingsId { get; set; }

        /// <summary>
        /// 分类
        /// </summary>
        public TaskCenterCategoryEnum Category { get; set; }

        /// <summary>
        /// 菜单路径
        /// </summary>
        public string MenuPath { get; set; }

        /// <summary>
        /// 执行进度
        /// </summary>
        public decimal ExcutingProgress { get; set; }

        /// <summary>
        /// 运行开始时间
        /// </summary>
        public DateTime? ExcuteBeginDatetime { get; set; }

        /// <summary>
        /// 运行结束时间
        /// </summary>
        public DateTime? ExcuteEndDatetime { get; set; }

        /// <summary>
        /// 最大重试次数
        /// </summary>
        public int? RetryCountMax { get; set; }

        /// <summary>
        /// 重试次数
        /// </summary>
        public int RetryCount { get; set; }

        /// <summary>
        /// 超时秒数
        /// </summary>
        public int? TimeOutSecond { get; set; }

        /// <summary>
        /// 是否超时
        /// </summary>
        public bool IsTimeOut { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public TaskCenterRecordStatusEnum Status { get; set; }

        /// <summary>
        /// 运行结果信息
        /// </summary>
        public string ResultMessage { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        /// CreateUserId
        /// </summary>
        public int CreateUserId { get; set; }

        /// <summary>
        /// CreateUserName
        /// </summary>
        public string CreateUserName { get; set; }

        /// <summary>
        /// CreateDateTime
        /// </summary>
        public DateTime CreateDateTime { get; set; }

        /// <summary>
        /// UpdateUserId
        /// </summary>
        public int UpdateUserId { get; set; }

        /// <summary>
        /// UpdateUserName
        /// </summary>
        public string UpdateUserName { get; set; }

        /// <summary>
        /// UpdateDateTime
        /// </summary>
        public DateTime UpdateDateTime { get; set; }

        /// <summary>
        /// IsDel
        /// </summary>
        public bool IsDel { get; set; }

        /// <summary>
        /// TaskCenterRecordExtensionAddDto
        /// </summary>
        public TaskCenterRecordExtensionAddDto TaskCenterRecordExtensionAddDto { get; set; }

    }
}
